#header {
    position: relative;
    z-index: 1400;
    margin-bottom: 60px;
}

.rb-header {
    height: 48px;
    color: var(--weui-FG-0);
    border-bottom: 1px solid var(--weui-FG-3);
    background-color: var(--weui-BG-2);
}

.rb-header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    max-width: var(--content-max-width);
    margin: auto;
    padding: 0 24px;
    transition: all .25s var(--anim-time-fn-easing);
}

.rb-header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: 8px;
    .rb-header-nav__link {
        cursor: pointer;
        padding: 4px 16px;
        box-sizing: border-box;
        height: 32px;
        line-height: 24px;
        color: var(--weui-FG-0);
        text-decoration: none;
        border-radius: var(--border-radius);
        transition: all 0.1s ease 0s;
        display: inline-block;
        vertical-align: middle;
        word-break: keep-all;
        flex-shrink: 0;
    }
    .rb-header-nav__link.category {
        position: relative;
        .category-menu {
            display: none;
            position: absolute;
            background-color: var(--weui-BG-2);
            padding: 10px;
            border: 1px solid var(--weui-FG-3);
            z-index: 1000;
            top: 30px;
            left: -18px;
        }
    }
    .rb-header-nav__link.category:hover {
        .category-menu {
            display: block;
        }
    }
    a.rb-header-nav__link:hover {
        background-color: var(--weui-FG-5);
    }
}

.rb-header-nav-mobile {
    display: none;
    cursor: pointer;
}

rb-theme-tabs {
    .rb-tabs {
        min-width: 60px;
        width: 100%;
        height: 32px;
        padding: 2px;
        box-sizing: border-box;
        border-radius: var(--border-radius);
        background-color: var(--weui-FG-5);
        position: relative;
        display: flex;
        justify-content: space-between;
        .rb-tabs__block {
            background-color: var(--weui-BG-2);
            box-shadow: 0 2px 4px #00000026;
            position: absolute;
            height: calc(100% - 4px);

            border-radius: var(--border-radius);
            width: 28px;
            left: 2px;
        }
        .rb-item {
            width: 50%;
            height: 28px;
            padding: 4px;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            box-sizing: border-box;
            color: var(--weui-FG-1);
            position: relative;
            cursor: pointer;
        }
        .rb-item.active.sun {
            color: #ffbd2e;
        }
        .rb-item.active.moon {
            color: #fff;
        }
    }
}

.rb-site-info {
    height: 100px;
    border-bottom: 1px solid var(--weui-FG-3);
    background-color: var(--weui-BG-2);
}

.rb-site-info-inner {
    position: relative;
    height: 100%;
    max-width: var(--content-max-width);
    margin: auto;
    padding: 0 24px;
    .rb-site-logo {
        position: absolute;
        right: 24px;
        bottom: -20px;
        border: 1px solid var(--weui-FG-3);
        width: var(--header-site-logo-size);
        height: var(--header-site-logo-size);
        border-radius: var(--header-site-logo-radius);
    }
    .rb-site-title {
        position: absolute;
        right: 120px;
        bottom: 10px;
        font-size: 18px;
    }
    .rb-site-description {
        color: var(--weui-FG-1);
        position: absolute;
        right: 24px;
        bottom: -50px;
    }
}

.rb-header-mobile-nav {
    position: fixed;
    left: -320px;
    top: 0;
    height: 100%;
    background-color: var(--weui-BG-0);
    width: 320px;
    max-width: 60%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    border-right: 1px solid var(--weui-FG-3);
    z-index: 1002;
    transition: 0.2s;
    .rb-header-mobile-site-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 20px;
        .rb-site-logo {
            border: 1px solid var(--weui-FG-3);
            width: var(--header-site-logo-size);
            height: var(--header-site-logo-size);
            border-radius: var(--header-site-logo-radius);
        }
        .rb-site-title {
            font-size: 18px;
            margin: 10px 0 5px;
        }
        .rb-site-description {
            color: var(--weui-FG-1);
        }
    }
    .rb-header-mobile-nav__item {
        padding: 10px;
        color: var(--weui-FG-1);
        border-bottom: 1px solid var(--weui-FG-3);
        width: 100%;
        background-color: var(--weui-BG-2);
        margin: 0 0 5px;
        ul li{
            display: inline-block;
            .rb-header-mobile-nav__link {
                color: var(--weui-FG-1);
                height: 20px;
                line-height: 12px;
                font-size: 12px;
                background-color: var(--weui-FG-5);
                padding: 4px 6px;
            }
        }
    }
    a.rb-header-mobile-nav__item,
    .rb-header-mobile-nav__link {
        color: var(--weui-FG-0);
    }
    .rb-header-mobile-nav__link {
        display: block;
        padding: 5px 0;
    }
    .rb-header-mobile-nav__link + .rb-header-mobile-nav__link {
        border-bottom: 1px solid var(--weui-FG-3);
    }
}

.rb-header-mobile-nav.show {
    left: 0;
}

.rb-header-mobile-mask {
    display: none;
    position: fixed;
    z-index: 1001;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.rb-header-mobile-mask.show {
    display: block;
}

@media (max-width: 480px) {
    .rb-header-nav {
        display: none;
    }
    .rb-header-nav-mobile {
        display: block;
    }
}